package exam.service.impl;

import exam.bean.Major;
import exam.dao.MajorDao;
import exam.service.IMajorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MajorServiceImpl implements IMajorService {

    @Autowired
    private MajorDao majorDao;

    @Override
    public List<Major> selectMajor() {
        return majorDao.selectMajor();
    }
}
